1bashThis script prints the first 10 lines of the file file.txt.head -n 10 file.txtexternal toolshead
2bashThis demonstrates how to preview the first 5 lines of a file using the head command.head -n 5 < sales.csvexternal toolsheadfile preview
3bashExtract the first 5 lines from the sales.csv file and save them to a new file named top_sales.csv. This demonstrates how to use the head command to quickly extract a portion of a file.head -n 5 sales.csv > top_sales.csvexternal toolshead
4bashThis demonstrates reading the first 10 lines of a file using the head command.head foo.txtexternal toolsheadfile reading (first lines)